package org.example.demo2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
/*
https://blog.csdn.net/wangyunzhao007/article/details/110086703
 */
@SpringBootApplication
public class Websocket02Application {

    public static void main(String[] args) {
        SpringApplication.run(Websocket02Application.class, args);
    }

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
